package com.dkd.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;

/**
 * 地址管理对象 tb_address
 * 
 * @author LQL
 * @date 2025-04-22
 */
public class Address extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地址ID（主键） */
    private Long addressId;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long fkUserId;

    /** 收货人 */
    @Excel(name = "收货人")
    private String receiver;

    /** 地址详情 */
    @Excel(name = "地址详情")
    private String addressDetail;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 是否默认地址（0否1是） */
    @Excel(name = "是否默认地址", readConverterExp = "0=否1是")
    private Integer isDefault;

    public void setAddressId(Long addressId) 
    {
        this.addressId = addressId;
    }

    public Long getAddressId() 
    {
        return addressId;
    }
    public void setFkUserId(Long fkUserId) 
    {
        this.fkUserId = fkUserId;
    }

    public Long getFkUserId() 
    {
        return fkUserId;
    }
    public void setReceiver(String receiver) 
    {
        this.receiver = receiver;
    }

    public String getReceiver() 
    {
        return receiver;
    }
    public void setAddressDetail(String addressDetail) 
    {
        this.addressDetail = addressDetail;
    }

    public String getAddressDetail() 
    {
        return addressDetail;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setIsDefault(Integer isDefault) 
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault() 
    {
        return isDefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("addressId", getAddressId())
            .append("fkUserId", getFkUserId())
            .append("receiver", getReceiver())
            .append("addressDetail", getAddressDetail())
            .append("phone", getPhone())
            .append("isDefault", getIsDefault())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
